package com.ddone.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ddone.model.auth.SysMenu;
import com.ddone.model.vo.AssginMenuVo;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author ddone
 * @date 2024/3/29-21:01
 */
public interface SysMenuService extends IService<SysMenu> {
    /**
     * 菜单树形数据
     * @return
     */
    List<SysMenu> findNodes();

    /**
     * 根据角色获取授权权限数据
     * @param roleId
     * @return
     */
    List<SysMenu> findMenuByRoleId(Long roleId);

    /**
     * 保存角色权限
     */
    void doAssign(AssginMenuVo assignMenuVo);
}
